home *** CD-ROM | disk | FTP | other *** search
- put selectedLine of window where into ReplaceLine
- put the text of window where into TheText
- repeat with x = 1 to the number of chars in process
- get char x of process
- if it is ";" then put "," into char x of process
- end repeat
- if word 1 of process is "Deleted:" then
- beep
- do restext("TEXT", "Exit", colorauthoringpath)
- end if
- put item 1 of process into whatKind
- put item 2 of process into itsoldName
- put item 3 of process into itsID
- do showdialog 2, "500", , ,itsoldName, false
- put line 2 of the result into newname
- if newname is itsoldName then do restext("TEXT", "Exit", colorauthoringpath)
- if newname is empty then do restext("TEXT", "Exit", colorauthoringpath)
- do RenameRes(RenamefilePath, itsID, whatkind, itsoldName, newname)
- put newName into item 2 of process
- put process into line replaceline of theText
- set the text of window where to theTEXT
- if there is a window holdstackname then
- if holdstackname is renamefilepath then
- set the text of window holdstackname to theText
- end if
- end if
- if there is a window "Resource List" then
- if holdstackname is not renamefilepath then
- set the text of window "Resource List" to theTEXT
- end if
- end if
- set cursor to watch
- put the long name of this stack into check
- delete word 1 of check
- delete char 1 of check
- delete the last char of check
- if check is not renamefilepath then
- start using stack renamefilepath
- stop using stack renamefilepath
- start using stack renamefilepath
- end if
- if check is renamefilepath then
- answer "Do you want to re-initialize the stack so your resource will be active?" with "No" or "yes"
- if it is "Yes" then
- set lockscreen to true
- push card
- go home
- pop card
- end if
- else
- do restext ("TEXT", "Exit", colorauthoringpath)
- end if